package cn.lg.soar.mvc.config;

import cn.lg.soar.mvc.aspect.SignatureAspect;
import cn.lg.soar.mvc.aspect.idempotent.IdempotentAspect;
import cn.lg.soar.mvc.aspect.idempotent.IdempotentService;
import cn.lg.soar.mvc.aspect.log.LogAspect;
import cn.lg.soar.mvc.config.jackson.JacksonSerializerConfig;
import cn.lg.soar.mvc.controller.ResourceApiController;
import cn.lg.soar.mvc.handler.IpFilterProps;
import cn.lg.soar.mvc.handler.SoarResponseBodyAdvice;
import cn.lg.soar.mvc.log.DefaultLogHandler;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;


/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2024/2/23 16:30
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ImportAutoConfiguration({
        MvcProperties.class,
        IpFilterProps.class,
        DefaultLogHandler.class,
        IdempotentService.class,
        ResourceApiController.class,
        CurrentUserHolderFilter.class,
        JacksonSerializerConfig.class,
        CorsConfigurer.class,
        RestTemplateConfig.class,
        IpWhitelistConfig.class,
        WebMvcConfiguration.class,
        SoarResponseBodyAdvice.class,
        IdempotentAspect.class,
        LogAspect.class,
        SignatureAspect.class,
})
public class AutoConfiguration {

    static {
        MvcExceptionHandleConfig.init();
    }

}
